package com.rk.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rk.admin.domain.Teacher;

import java.util.List;

public interface TeacherService {

    /**
     * 查询所有教师信息
     * @return
     */
    public List<Teacher> findallTeacher();


    /**
     * 通过id查询教师
     * @param id
     * @return
     */
    public Teacher findbyid(Integer id);


    /**
     * 通过id修改教师信息
     * @param teacher
     * @return
     */
    public Boolean updatebyid(Teacher teacher);


    /**
     * 添加教师
     * @param teacher
     * @return
     */
    public Boolean add(Teacher teacher);


    /**
     * 通过id删除
     * @param id
     * @return
     */
    public Boolean deleteById(Integer id);

    /**
     * 条件分页查询
     * @param page
     * @param limit
     * @param name
     * @return
     */
    public IPage<Teacher> selectPage(int page,int limit,String name);


}

